Skip to content

(fix) Add missing type annotation for missedAppointmentsCount#2287

Merged
denniskigen merged 1 commit intoopenmrs:mainfrom
pggdev:fix/appointments-type-error
Mar 2, 2026
Merged

(fix) Add missing type annotation for missedAppointmentsCount#2287
denniskigen merged 1 commit intoopenmrs:mainfrom
pggdev:fix/appointments-type-error

Conversation

@pggdev
Copy link
Contributor

@pggdev pggdev commented Feb 27, 2026

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work is based on designs, which are linked or shown either in the Jira ticket or the description below.
  • My work includes tests or is validated by existing tests.

Summary

This PR improves type safety in the appointments module by replacing an incorrect any type with a more specific and appropriate type.

The change resolves a TypeScript type error and ensures stronger compile-time validation without affecting runtime behavior.

No functional or UI changes were introduced.

Screenshots

N/A – No UI changes.

Related Issue

https://openmrs.atlassian.net/browse/O3-5451

Other

This is a small internal improvement focused on maintaining type correctness and improving overall code quality.

@pggdev
Copy link
Contributor Author

pggdev commented Mar 2, 2026

@jayasanka-sack @ibacher @denniskigen please have a look at this!

@ibacher
Copy link
Member

ibacher commented Mar 2, 2026

  1. Please look at how we do conventional commits in this repo and elsewhere
  2. Please fill in the PR form. It's there to collect information that helps us review things.

The `missedAppointmentsCount` property in the `AppointmentCountMap`
interface lacked a type annotation, defaulting to implicit `any`.
This adds the correct `number` type to match the backend's `Integer`
in both the appointments and service queues packages.
@denniskigen denniskigen changed the title chore: Replace any with number in missedAppointmentsCount type (fix) Add missing type annotation for missedAppointmentsCount Mar 2, 2026
@denniskigen denniskigen force-pushed the fix/appointments-type-error branch from f331b6a to 26147a7 Compare March 2, 2026 22:14
@denniskigen denniskigen enabled auto-merge (squash) March 2, 2026 22:15
@denniskigen
Copy link
Member

denniskigen commented Mar 2, 2026

Thanks, @pggdev!

@denniskigen denniskigen merged commit 18521f2 into openmrs:main Mar 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants